package cn.edu.nyist.integration.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class LogInfo implements Serializable {
    private Integer logId;

    private String username;
    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date loginTime;

    private String msg;

    private Integer status;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "LogInfo{" +
                "logId=" + logId +
                ", username='" + username + '\'' +
                ", loginTime=" + loginTime +
                ", msg='" + msg + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    public LogInfo(Integer logId, String username, Date loginTime, String msg, Integer status) {
        this.logId = logId;
        this.username = username;
        this.loginTime = loginTime;
        this.msg = msg;
        this.status = status;
    }

    public LogInfo() {
        super();
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}